import * as XLSX from "xlsx";
import { addModels } from "./readXlsx";
import { addManyBet } from "@/apis/betApi";

export async function readBet(wb: XLSX.WorkBook, id: number) {
  const model = {
    btName: "",
    btSpan: 0,
    lineId: 1,
  } as BetModel;
  return await addModels(wb, "bets", model, addManyBet, id);
}
